---
layout: m1x_soap
title: Product Type List
---

<h2><a name="catalog_product_type.list-Module%3AMageCatalog"></a>Module: Mage_Catalog</h2>


<h4><a name="catalog_product_type.list-Resource%3Acatalogproducttype"></a>Resource: catalog_product_type</h4>

<p><b>Aliases:</b></p>
<ul>
	<li>product_type</li>
</ul>


<h5><a name="catalog_product_type.list-Method%3A"></a>Method:</h5>

<ul>
	<li>catalog_product_type.list (SOAP V1)</li>
	<li>catalogProductTypeList (SOAP V2)</li>
</ul>


<p>Allows you to retrieve the list of product types.</p>

<p><b>Aliases:</b></p>
<ul>
	<li>product_type.list</li>
</ul>



<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
</tbody></table>


<p><b>Returns</b>:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> array </td>
<td> result </td>
<td> Array of catalogProductTypeEntity </td>
</tr>
</tbody></table>


<p>The <b>catalogProductTypeEntity</b> content is as follows:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> type </td>
<td> Product type </td>
</tr>
<tr>
<td> string </td>
<td> label </td>
<td> Product label in the Admin Panel </td>
</tr>
</tbody></table>


<h4><a name="catalog_product_type.list-Examples"></a>Examples</h4>

<h5><a name="catalog_product_type.list-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>


<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$client = new SoapClient('http://magentohost/api/soap/?wsdl');

// If somestuff requires API authentication,
// then get a session token
$session = $client-&gt;login('apiUser', 'apiKey');

$result = $client-&gt;call($session, 'catalog_product_type.list');
var_dump($result);

// If you don't need the session anymore
//$client-&gt;endSession($session);</pre>
		</div>
</div></div>

<h5><a name="catalog_product_type.list-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>


<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;catalogProductTypeList($sessionId);
var_dump($result);</pre>
		</div>
</div></div>

<h5><a name="catalog_product_type.list-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>


<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey'));

$result = $proxy-&gt;catalogProductTypeList((object)array('sessionId' =&gt; $sessionId-&gt;result));
var_dump($result-&gt;result);</pre>
		</div>
</div></div>



<h5><a name="catalog_product_type.list-ResponseExampleSOAPV1"></a>Response Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: java; gutter: false">array
  0 =&gt;
    array
      'type' =&gt; string 'simple' (length=6)
      'label' =&gt; string 'Simple Product' (length=14)
  1 =&gt;
    array
      'type' =&gt; string 'grouped' (length=7)
      'label' =&gt; string 'Grouped Product' (length=15)
  2 =&gt;
    array
      'type' =&gt; string 'configurable' (length=12)
      'label' =&gt; string 'Configurable Product' (length=20)
  3 =&gt;
    array
      'type' =&gt; string 'virtual' (length=7)
      'label' =&gt; string 'Virtual Product' (length=15)
  4 =&gt;
    array
      'type' =&gt; string 'bundle' (length=6)
      'label' =&gt; string 'Bundle Product' (length=14)
  5 =&gt;
    array
      'type' =&gt; string 'downloadable' (length=12)
      'label' =&gt; string 'Downloadable Product' (length=20)</pre>
		</div>
</div></div>


